const Koa = require('koa');
const fs = require('fs');
const router = require('koa-router');
const route = router();
const bodyParser = require('koa-bodyparser');
const controller = require('./controller');

let app = new Koa();


route.constructor();
app.use(bodyParser());
app.use(route.routes());

app.listen(10000, () => {
    console.log('服务器启动成功！');
});

console.log('app started at port 3000...');